﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Configuration;

namespace GrayParrot.Caching.Configuration
{
    public class CacheSettings : ConfigurationSectionBase<CacheSettings>
    {
        [ConfigurationProperty("expirationTime", IsRequired=true)]
        public int ExpirationTime
        {
            get { return ((int)(base["expirationTime"])); }
            set { base["expirationTime"] = value; }
        }

        [ConfigurationProperty("expirationPeriod", IsRequired = true)]
        public ExpirationPeriod ExpirationPeriod
        {
            get { return ((ExpirationPeriod)(base["expirationPeriod"])); }
            set { base["expirationPeriod"] = value; }
        }

        public CacheSettings()
        {

        }
    }
}
